package service.impl;

import dao.TickDao;
import dao.impl.TickDaoImpl;
import pojo.TickTable;
import service.TickService;

import java.util.ArrayList;

public class TickServiceImpl implements TickService {
    private TickDao tickDao = new TickDaoImpl();
    @Override
    public boolean login(String account, String password) {
        return tickDao.selectUser(account,password).size()!=0?true:false;
    }

    @Override
    public ArrayList<TickTable> show() {
        return tickDao.selectTick();
    }

}
